package com.example.administrator.kotlindemo

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.TextView
import android.widget.Toast

/**
 * Created by Administrator on 2017/8/1.
 */

class ThirdActivity : Activity(), View.OnClickListener {


    private var text_three: TextView? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_third)
        text_three = findViewById(R.id.text_three)
        text_three!!.setOnClickListener(this)
    }

    override fun onClick(view: View) {

        when (view.id) {
            R.id.text_three->{
                Toast.makeText(this, " 低三的模块", Toast.LENGTH_LONG).show()
            }

        }


    }
}
